<include file="./Tpl/Home/top.html"/>
<include file="./Tpl/Home/header.html" />
<!--交易页面的子导航区-->
<include file="./Tpl/Home/user_nav.html" />

<div class="container">
    <!--全站交易记录-->
    <div class="trade-part trade-part-hd mt20">
        <div class="trade-hd">
            <h5><i class="icon_condition"></i>账户充值(第一步)</h5>
        </div>
        <div class="md">
            <div class="my-grid" id="order-grid" style="margin-bottom:20px;">
                <form action="{$path}/User/chongzhi" method="post" id="formid">
                    <input type="hidden" name="yuan" id="yuan" value="0"/>
                    <table class="items table table-striped table-bordered table-condensed chkreal">
                        <tbody>
                        <tr> <td colspan="2"><img src="./Public/Home/cz/cz1.png"></td></tr>
                        <tr> <td colspan="2"><font style="color: red;font-size: bold;line-height: 40px;font-size: 16px">
                            ◆因为国家对支付行业的相关调整,本网站采取线上申请线下打款的方式,给您带来的不便,敬请谅解!谢谢!!</font></td></tr>
                        <tr><td>充值金额：</td><td><input type="text" name="goldnum" placeholder="充值金额限定在{$chongzhid}元--{$chongzhiu}元之间"/></td>
                        <input type="hidden" name="url" value="{$url|default='无'}" readonly/></tr>
                        <tr><td>验证码：</td><td><input type="text" name="code" placeholder="请输入验证码" style="width:114px;"/><img id="refresh" style="vertical-align:middle;height:30px;margin-left:5px;" onclick="document.getElementById('refresh').src='{$path}/Login/checkcode/t/'+Math.random()" src="{$path}/Login/checkcode/" title="看不清？点一下"/></td></tr>
                        <tr><td colspan=2><input type="button" id="subbtn" class="btn" value="确定"/></td></tr>
                        </tbody>
                    </table>
                </form>
            </div>
            <div class="my-grid" id="order-grid">
                <table class="items table table-striped table-bordered table-condensed saferoom">
                    <thead>
                    <tr><th>订单号</th><th>金额</th><th>时间</th><th width="40%">状态</th></tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="vo" empty="$empty">
                        <tr><td class="chkTit">{$vo.orderno|default='无'}</td><td>{$vo.goldnum|default='0'}</td><td>{$vo.addtime|default='无'}</td><td><eq name="vo.status" value="0">正在处理<else/>已处理</eq></td></tr>
                    </volist>
                    </tbody>
                </table>
                <div id="page">
                </div>
            </div>
        </div>
    </div>
</div>
    </div>
<!--尾部-->
<include file="./Tpl/Home/footer.html" />
<!-- footer -->

<div class="modal hide fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>

<script type="text/javascript">


    $(document).ready(function(){
        $('#subbtn').click(function(){
            var goldnum = $('input[name=goldnum]').val();

            if(goldnum=="" || goldnum <= 0){
                msgDalog("请输入充值金额！","",0);
                return false;
            }else if(isNaN(goldnum)){
                msgDalog('充值金额应该是数字！');
                $('input[name=goldnum]').val('');
                return false;
            }if(goldnum>={$chongzhiu}){
                msgDalog('充值金额不能超过{$chongzhiu}元！');
                return false;
            }if(goldnum<{$chongzhid}){
                msgDalog('充值金额不能少于{$chongzhid}元！');
                return false;
            }else if($('input[name=code]').val()==""){
                msgDalog("请输入验证码！","",0);
                return false;
            }else{
                     $('#formid').submit();

            }
        });

        getczdata(1);
    });




    function czapplyback(id){
        var loadi = layer.load('正在取消...…');
        $.ajax({
            type : "get",
            url : "{$path}/User/czapplyback/id/"+id,
            async : false,
            success : function(data){
                layer.close(loadi);
               if(data!=false){
                   $('#del'+id).remove();
               }else{
                   layer.alert('取消失败!');
               }
            }
        });
    }


    function czstatus(id){
        var loadi = layer.load('正在提交...…');
        $.ajax({
            type : "get",
            url : "{$path}/User/czConfirm/id/"+id,
            async : false,
            success : function(data){
                layer.close(loadi);
                if(data!=false){
                  $('#status'+id).html(' <font color="red">等待网站管理员审核</font>');
                }else{
                    layer.alert('提交失败!');
                }
            }
        });
    }
</script>
<script type="text/javascript">
    //显示当前类别样式
    $('#left_main_user').removeClass().addClass('tradeTitlecur');//一级
    $('#left_main_trance span').removeClass().addClass('trade1cur');
    $('#left_chongzhi').addClass('cur');//二级
	

</script>

</body></html>